<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetFrameworkMinimum)</TargetFrameworks>
  </PropertyGroup>
  <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
  <PropertyGroup>
    <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
    <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'windows' or $([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">$(DefineConstants);TargetsWindows</DefineConstants>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="ConnectionTests.cs" />
    <Compile Include="DependencyCheckTest.cs" />
    <Compile Include="Helpers.cs" />
    <Compile Include="IntegrationTestBase.cs" />
    <Compile Include="CommandBuilderTests.cs" />
    <Compile Include="OdbcConnectionSchemaTests.cs" />
    <Compile Include="ReaderTests.cs" />
    <Compile Include="SmokeTest.cs" />
    <Compile Include="TestCommon\DataTestUtility.cs" />
    <Compile Include="TestCommon\CheckConnStrSetupFactAttribute.cs" />
    <Compile Include="OdbcParameterTests.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix'">
    <Compile Include="$(CommonPath)Interop\Unix\Interop.Odbc.cs"
             Link="Common\Interop\Unix\Interop.Odbc.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'windows' or '$(TargetFrameworkIdentifier)' == '.NETFramework'">
    <Compile Include="$(CommonPath)Interop\Windows\Interop.Libraries.cs"
             Link="Common\Interop\Windows\Interop.Libraries.cs" />
    <Compile Include="ConnectionStrings.Windows.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetPlatformIdentifier)' != 'windows' and '$(TargetFrameworkIdentifier)' != '.NETFramework'">
    <Compile Include="ConnectionStrings.Unix.cs" />
  </ItemGroup>
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
    <ProjectReference Include="..\src\System.Data.Odbc.csproj" />
  </ItemGroup>
</Project>
